<?php
namespace app\index\controller;

use app\index\model\Favor;
use think\Request;

class Favors extends Base
{
    private $Favor;
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->Favor = new Favor();
    }

    /** 主播粉丝表
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function index()
    {
        $map= array();
        $key = input('get.key');
        $list = $this->Favor->query_list($map);
        $this->assign('key',$key);
        $this->assign('list',$list);
        return $this->fetch();
    }
}